package com.znf4.look.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.look.entity.Look;
import com.znf4.look.mapper.LookMapper;
import com.znf4.look.server.LookServer;

@Service
public class LookServerImpl implements LookServer {
	
	@Autowired
	private LookMapper lookMapper ;
	
	

	public void addLook(Look look) {
		lookMapper.insert(look);
		
	}

	public void updateLook(Look look) {
		lookMapper.update(look);
		
	}

	public void delOneLook(Look look) {
		lookMapper.deleteOne(look);
		
	}

	public void delAllLook(List<Look> list) {
		lookMapper.deleteAll(list);
		
	}

	public Look queryOne(Look look) {
		return lookMapper.queryOne(look);
	}

	public List<Look> queryAll(Look look) {
		return lookMapper.queryAll(look);
	}

	
	
	
	
	

}
